package com.zhss.concurrency.subject;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @ClassName Location
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/8/31 14:06
 * @Version 1.0
 */
public final class Location {
	private final BigDecimal x;
	private final BigDecimal y;
	private final List<Integer> data = new ArrayList<>();

	public Location(BigDecimal x, BigDecimal y) {
		this.x=x;
		this.y=y;
	}

	public BigDecimal getX() {
		return x;
	}

	public BigDecimal getY() {
		return y;
	}

	public List<Integer> getData() {
		return Collections.unmodifiableList(new ArrayList<>(data));
	}

}
